package cn.edu.sasu.domain.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class SysUserSaveDTO {
    private String mobile;
    @NotBlank(message = "用户名不能为空")
    private String username;
    @Pattern(regexp = "^[a-zA-Z]\\w{5,17}$",message = "以字母开头，长度在6~18之间，只能包含字母、数字和下划线")
    private String password;
    private Integer deptId;
    private Byte sex;
    private String email;
    private String remark;
    private Byte status;
    private String realName;
}
